package com.vmove.childtrain.db.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 数据表
 */
@DatabaseTable(tableName = "tb_data")
public class Data {

    //表中各个字段的名称
    public static final String COLUMNNAME_ID = "id";

    @DatabaseField(generatedId = true,columnName = COLUMNNAME_ID)
    private int id;

    @DatabaseField
    private int distance;

    /**
     * 步骤耗时
     * -1 超时
     * -2 错拍
     */
    @DatabaseField
    private int time;

    /**
     * 业务字段
     * to 训练结果计入超时时间
     */
    private int chaoshi;

    public int getChaoshi() {
        return chaoshi;
    }

    public void setChaoshi(int chaoshi) {
        this.chaoshi = chaoshi;
    }

    public Data() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }
}
